use wfMsgForContent for copyright policy link on edit page since it is
authorErik Moeller <erik@users.mediawiki.org>
Fri, 18 Mar 2005 14:13:58 +0000 (14:13 +0000)
committerErik Moeller <erik@users.mediawiki.org>
Fri, 18 Mar 2005 14:13:58 +0000 (14:13 +0000)
probably going to point to the same page regardless of user language
preference (is also used in other calls). Note that many language files
don't use the proper format and instead have the license hardcoded, so
this won't have any effect on them.

includes/EditPage.php

index 36a6d01..9b94ed5 100644 (file)
@@ -521,7 +521,7 @@ class EditPage {
                global $wgRightsText;
                $copywarn = "<div id=\"editpage-copywarn\">\n" .
                        wfMsg( $wgRightsText ? 'copyrightwarning' : 'copyrightwarning2',
-                               '[[' . wfMsg( 'copyrightpage' ) . ']]',
+                               '[[' . wfMsgForContent( 'copyrightpage' ) . ']]',
                                $wgRightsText ) . "\n</div>";
 
                if( $wgUser->getOption('showtoolbar') and !$isCssJsSubpage ) {